<!DOCTYPE html>
<!-- saved from url=(0043)https://127.0.0.1:8443/weichat/general.html -->
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keyword" content="">

    <title></title>

    <!-- Bootstrap core CSS -->
    <link href="./1111_files/bootstrap.css" rel="stylesheet">
    <!--external css-->
    <link href="./1111_files/font-awesome.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="./1111_files/jquery.gritter.css">

    <!-- Custom styles for this template -->
    <link href="./1111_files/style.css" rel="stylesheet">
    <link href="./1111_files/style-responsive.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="./1111_files/jquery.js"></script>
    <script src="./1111_files/jquery-1.8.3.min.js"></script>
    <script src="./1111_files/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="./1111_files/jquery.dcjqaccordion.2.7.js"></script>
    <script src="./1111_files/jquery.scrollTo.min.js"></script>
    <script src="./1111_files/jquery.nicescroll.js" type="text/javascript"></script>


    <!--common script for all pages-->
    <script src="./1111_files/common-scripts.js"></script>

    <!--script for this page-->
    <script type="text/javascript" src="./1111_files/jquery.gritter.js"></script>
    <script type="text/javascript" src="./1111_files/gritter-conf.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            loadHtml();
        });
        var showbakstart = "                    <div class=\"showback\">";
        var title = " <h4><i class=\"fa fa-angle-right\"></i> $title</h4>" +
            "                        <div class=\"alert alert-success\">";
        var msg = " <b class=\"col-xs-6\">$msg</b>"
        var pic = " <img src=\"$png\" style=\"width:100%;\"/>";
        var showbakend = "</div>";
        var html = "";

        function loadHtml() {
            $.ajax({
                url: "/weisend/queryWeiChatParam.action",
                type: "post",
                dataType: "json",
                data: {},
                success: function (data) {
                    alert(data);
                    if (data) {
                        console.log(data)
                        // 删除成功将表格刷新
                        html = html.concat(showbakstart);
                        for (var i = 0; i < data.chat.length; i++) {

                            html = html.concat(title.replace('$title', data.chat[i].send_Title));

                            var content = data.chat[i].msg;
                            var cts = content.split(',');
                            for (var j = 0; j < cts.length; j++) {
                                if ((j + 1) % 2 == 0) {
                                    html = html.concat(msg.replace('$msg', cts[j])).concat('<br>');
                                } else {
                                    html = html.concat(msg.replace('$msg', cts[j]));
                                }

                            }

//                            $("#contentview").append(msg.replace('$msg', data.chat[i].msg));
                            html = html.concat(pic.replace('$png', 'data:image/png;base64,' + data.chat[i].svg));
//


                        }
                        html = html.concat(showbakend);
                        $("#contentview").html(html);
//                        alert($("#contentview").val());

                    }
                }
            });
        }

    </script>
</head>

<body style="">

<section id="container" class="sidebar-close">
    <section id="main-content" style="margin-left: auto">
        <section class="wrapper" style="margin-top: auto">
            <div class="row mt">


                <div id="contentview" class="col-xs-12">
                    <div class="showback"><h4><i class="fa fa-angle-right"></i> til_zhangli</h4>
                        <div class="alert alert-success"><b class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br>
                            <b class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <img
                                    src=""
                                    style="width:100%;"> <h4><i class="fa fa-angle-right"></i> til_yuxq</h4>
                        </div>
                        <div class="alert alert-success"><b class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br>
                            <b class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <b
                                    class="col-xs-6">昆明收入金额：800万</b> <b class="col-xs-6">大理收入金额：800万</b><br> <img
                                    src=""
                                    style="width:100%;">
                        </div>
                    </div>
                </div><!-- /col-lg-6 -->

            </div><!--/ row -->
        </section>
        <!-- --/wrapper ---->
    </section><!-- /MAIN CONTENT -->

    <!--main content end-->
    <!--footer start-->
    <footer class="site-footer">
        <div class="text-center">
            Copyright © 2017.Company name All rights reserved.<a target="_blank"
                                                                 href="https://127.0.0.1:8443/weichat/general.html"></a>
            <a href="https://127.0.0.1:8443/weichat/general.html#" class="go-top">
                <i class="fa fa-angle-up"></i>
            </a>
        </div>
    </footer>
    <!--footer end-->
</section>


</body>
</html>